<template>
  <div>
    <span>{{count}}</span>
   <button @click="addOne">点我加1</button>
  </div>
</template>

<script>
  import index from '../pages/index'
  export default {
    components:{
      index
    },
    name: "VueBase",
    data() {
      return{
        count:1
      }
    },
    methods:{
      addOne(){
        this.count++;
      }
    }


  }
</script>

<style scoped>

</style>
